﻿Imports System
Imports System.Workflow.ComponentModel.Design

Namespace System.Workflow.Activities
    <ActivityDesignerTheme(GetType(ConditionedDesignerTheme))> _
    Friend NotInheritable Class IfElseBranchDesigner
        Inherits SequentialActivityDesigner
        ' Methods
        Public Overrides Function CanBeParentedTo(ByVal parentActivityDesigner As CompositeActivityDesigner) As Boolean
            If (parentActivityDesigner Is Nothing) Then
                Throw New ArgumentNullException("parentActivity")
            End If
            Return (TypeOf parentActivityDesigner.Activity Is IfElseActivity AndAlso MyBase.CanBeParentedTo(parentActivityDesigner))
        End Function

    End Class
End Namespace

